package com.bosssoft.cloud.wechat.core.bean.template;

import lombok.Data;

/**
 * 发送票开票成功通知的模板消息
 *
 * @author wcy create on 2021/7/1 17:28 下午
 */
@Data
public class SendInvoiceSuccessParam {
    /**
     * 接收者openid
     */
    private String touser;
    /**
     * 票据代码
     */
    private String billCode;
    /**
     * 票据号码
     */
    private String billNumber;
    /**
     * 开票单位
     */
    private String invoicingPartyName;
    /**
     * 交款人
     */
    private String payerName;
    /**
     * 金额
     */
    private String totalAmount;

    public String getByKeyword(String name) {
        switch (name) {
            case "keyword1":
                return this.invoicingPartyName;
            case "keyword2":
                return this.billCode;
            case "keyword3":
                return this.billNumber;
            case "keyword4":
                return this.payerName;
            case "keyword5":
                return this.totalAmount;
            default:
                return "";
        }
    }
}
